//
//  HomeListRootModel.m
//  Learn
//
//  Created by cjg on 2018/11/3.
//  Copyright © 2018 cjg. All rights reserved.
//

#import "HomeListRootModel.h"

@implementation HomeListRootModel

@end

@implementation HomeListBodyModel
//数组结构映射
+ (NSDictionary *)modelContainerPropertyGenericClass {
    return @{@"banner" : [HomeBannerModel class], @"jingangqu" : [HomeJingangquModel class], @"qupeiyin" : [HomeQupeiyinModel class], @"kewaikuozhan" : [HomeKewaikuozhanModel class], @"jiaocai" : [HomeJiaocaiModel class]};
}

@end

@implementation HomeBannerModel
- (void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:_bannerId forKey:@"id"];
}

- (id)initWithCoder:(NSCoder *)aDecoder {
    if ([self init]) {
        self.bannerId = [aDecoder decodeObjectForKey:@"id"];
    }
    return self;
}

@end
@implementation HomeJiaocaiModel
- (void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:_jiaocaiId forKey:@"id"];
}

- (id)initWithCoder:(NSCoder *)aDecoder {
    if ([self init]) {
        self.jiaocaiId = [aDecoder decodeObjectForKey:@"id"];
    }
    return self;
}

@end

@implementation HomeJingangquModel
- (void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:_jingangquId forKey:@"id"];
}

- (id)initWithCoder:(NSCoder *)aDecoder {
    if ([self init]) {
        self.jingangquId = [aDecoder decodeObjectForKey:@"id"];
    }
    return self;
}

@end

@implementation HomeQupeiyinModel
- (void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:_qupeiyinId forKey:@"id"];
}

- (id)initWithCoder:(NSCoder *)aDecoder {
    if ([self init]) {
        self.qupeiyinId = [aDecoder decodeObjectForKey:@"id"];
    }
    return self;
}

@end

@implementation HomeKewaikuozhanModel
- (void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:_kewaikuozhanId forKey:@"id"];
}

- (id)initWithCoder:(NSCoder *)aDecoder {
    if ([self init]) {
        self.kewaikuozhanId = [aDecoder decodeObjectForKey:@"id"];
    }
    return self;
}

@end
